<?php
/**
 * Created by PhpStorm.
 * User: lehong
 * Date: 2017/8/25
 * Time: 17:44
 */
$postData = [
    "nickname" => $_POST['nickname'],
];
$header = [];

$ch  = curl_init();
curl_setopt($ch,CURLOPT_URL,'http://n.job998.net/core/check_nickname.php');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch,CURLOPT_POST,1);
//curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch,CURLOPT_POSTFIELDS,$postData);

$data = curl_exec($ch);
echo $data;
 